package DataStructure.priority;

public class IndexMinPriorityQueueTest {
    public static void main(String[] args) {
        IndexMinPriorityQueue<String> queue = new IndexMinPriorityQueue<String>(10);
        queue.insert(0,"G");
        queue.insert(1,"B");
        queue.insert(2,"E");
        queue.insert(3,"K");
        queue.insert(4,"Q");
        queue.insert(5,"S");

        queue.changeItem(3,"A");
        //queue.delete(3);

        while (!queue.isEmpty()){
            int index = queue.delMin();
            System.out.print(index+" ");
        }
    }
}
